<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>boolean与数字进行计算会转换成1,和0进行计算</h1>
    <h2>boolean与数字进行计算会转换成1,和0进行计算</h2>
    <h3>boolean与数字进行计算会转换成1,和0进行计算</h3>
    <h4>boolean与数字进行计算会转换成1,和0进行计算</h4>
    <h5>boolean与数字进行计算会转换成1,和0进行计算</h5>
    <h6>boolean与数字进行计算会转换成1,和0进行计算</h6>
    <script>
        console.log(true*1);
        console.log(false+2);
    </script>
</body>
</html>